﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;

namespace efish.Framework.Model
{
    /// <summary>
    /// Summary description for Role
    /// </summary>
    public class Role : BaseModel
    {
        private int _roleid;
        private string _name;
        private string _dec;
        private int _type;
        //private ICollection<Right> _rights;

        public Role()
        {
            _type = 1;
            //_users = new List<User>();
        }

        public virtual int RoleID
        {
            get
            {
                return _roleid;
            }
            set
            {
                _roleid = value;
            }
        }

        public virtual string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }

        public virtual string Des
        {
            get
            {
                return _dec;
            }
            set
            {
                _dec = value;
            }
        }

        public virtual int Type
        {
            get
            {
                return _type;
            }
            set
            {
                _type = value;
            }
        }

        //public virtual ICollection<Right> Rights
        //{
        //    get
        //    {
        //        return _rights;
        //    }
        //    set
        //    {
        //        _rights = value;
        //    }
        //}
    }
}